//
//  ConsumerListHeadView.h
//  XiaoMiao
//
//  Created by kinglian_iOS_000 on 2018/1/22.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>
@class ConsumerListHeadView;

typedef NS_ENUM(NSUInteger, ConsumerListHeadButtonType) {
    ConsumerListHeadButtonTypeTime,
    ConsumerListHeadButtonTypeProject,
    ConsumerListHeadButtonTypeAge,
    ConsumerListHeadButtonTypeLoction,
};

@protocol ConsumerListHeadViewDelegate <NSObject>

@optional
- (void)consumerListHeadView:(ConsumerListHeadView *)consumerListHeadView didHeadButtonType:(ConsumerListHeadButtonType)buttonType;

- (void)consumerListHeadView:(ConsumerListHeadView *)consumerListHeadView didStartSearchKey:(NSString *)key;

@end

///////////////////////////////////////////////////////////////////////////////////////////////////


@interface ConsumerListHeadView : UIView

/** <#属性#> */
@property (nonatomic, weak) id <ConsumerListHeadViewDelegate>delegate;

- (void)setButtonTitle:(NSString *)title buttonType:(ConsumerListHeadButtonType)type isReset:(BOOL)isReset;

- (void)resignFirstResponder;

+ (CGFloat)viewHeight;

@end






///////////////////////////////////////////////////////////////////////////////////////////////////


@interface ConsumerListHeadButton : UIButton  

- (void)hiddeImage;

@end

